<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
	function loadXMLDoc(name)
	{
	var xmlhttp;
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
	    document.getElementById(name).innerHTML=xmlhttp.responseText;
	    }
	  }
	xmlhttp.open("GET","ajax.jsp?name="+name,true);
	xmlhttp.send();
	}
	
    function toggle_visibility(id) {
        var e = document.getElementById(id);
        if(e.style.display == 'block')
           e.style.display = 'none';
        else
           e.style.display = 'block';
     }
</script>
</head>
<body>


	<div id="div">
		<table style="border: 1px solid; text-align: center;">
			<tr>
				<th>Applicant</th>
				<th>Average Grade</th>
				<th>Status</th>
				<th>Action</th>
			</tr>

		<div id="austin">

				<tr>
					<td>Austin Hill</td>
					<td>4</td>
					<td>Accepted</td>
					<td>
						<button>Deny</button>
						<button>Cancel</button></td>
					<td>
						<button onclick="loadXMLDoc('austin')">View Application</button></td>
				</tr>

		</div>
		<div id="kurt">
	
				<tr>
					<td>Kurt Selander</td>
					<td>1</td>
					<td>Rejected</td>
					<td>
						<button>Cancel</button>
						<button>Accept</button></td>
					<td>
						<button onclick="loadXMLDoc('kurt')">View Application</button></td>
				</tr>
	
		</div>

		<div id="radley">

			<tr>
				<td>Radley Angelo</td>
				<td>3</td>
				<td>Pending</td>
				<td>
					<button>Accept</button>
					<button>Deny</button></td>
				<td>
					<button onclick="loadXMLDoc('radley')">View Application</button></td>
			</tr>
		</div>
	</table>
	</div>
</body>
</html>